package com.sqsf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/select.do")
    public ModelAndView select(ModelAndView mv,HttpServletRequest request){
        request.setAttribute("msg","查找返回的数据");
        mv.setViewName("/index.jsp");
        return mv;
    }

    @RequestMapping("/update.do")
    public String update(ModelAndView mv,HttpServletRequest request){
        request.setAttribute("msg","更新返回的数据");
        return "/index.jsp";
    }
}